﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utils;
using Settings;
using System.Data;
using System.Data.SqlClient;

namespace PanasonicWarranty.DAL
{
    public partial class DBpa_AgencyPhone
    {
        public static bool Delete(int AgencyID)
        {
            try
            {
                string query = "DELETE FROM pa_AgencyPhone WHERE AgencyID = @AgencyID";
                return (SqlHelper.ExecuteNonQuery(CommonSetting.ConnectionString, CommandType.Text, query, new SqlParameter("@AgencyID", AgencyID)) > 0);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
